package face.pay.web.device.controller;

import face.pay.entity.DeviceAssignmentInfo;
import face.pay.entity.UserInfo;
import face.pay.security.annotation.CurrentUser;
import face.pay.util.page.PageData;
import face.pay.util.page.PageParam;
import face.pay.web.device.service.DeviceAssignmentInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @Classname DeviceAssignmentInfoController
 * @Description JJL
 * @Date 2019/11/13 17:24
 * 转出记录
 */
@Controller
@RequestMapping("/assignment")
public class DeviceAssignmentInfoController {

    @Autowired
    private DeviceAssignmentInfoService deviceAssignmentInfoService;

    @RequestMapping("/list")
    public String manager(){
        return  "device/deviceAssignmentInfoList";
    }

    @RequestMapping("/queryData")
    @ResponseBody
    public PageData data(@CurrentUser UserInfo loginUser, PageParam pageParam, DeviceAssignmentInfo deviceAssignmentInfo){
        return deviceAssignmentInfoService.queryPage(loginUser,pageParam,deviceAssignmentInfo);
    }

}
